package lleida.festamajor.model;

import java.util.ArrayList;

public class Place {
	protected String name;
	protected double lat;
	protected double lon;
	protected ArrayList<Event> events;
	
	public Place(String name) {
		this.name = name;
		events = new ArrayList<Event>();
	}
	
	public Place(String name, double lat, double lon) {
		this.name = name;
		this.lat = lat;
		this.lon = lon;
		events = new ArrayList<Event>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLon() {
		return lon;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}
	
	public ArrayList<Event> getEvents() {
		return events;
	}
	
	public void addEvent(Event e) {
		events.add(e);
	}
}
